package com.atguigu.gulimail.order.web.feign;

import com.atguigu.common.utils.R;
import com.atguigu.gulimail.order.web.vo.SkuStockVo;
import com.atguigu.gulimail.order.web.vo.WareSkuLockVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@FeignClient("gulimail-ware")
public interface WareFeign {

    @PostMapping("ware/waresku/hasstock")
    List<SkuStockVo> getSkuHasStockList(@RequestBody List<Long> skuIds);

    @RequestMapping("ware/wareinfo/fare")
    R getFare(@RequestParam("addrId")Long addrId);

    @PostMapping("ware/waresku/warelock")
    R orderLocakStock(@RequestBody WareSkuLockVo wareSkuLockVo);


}
